package com.basin.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basin.common.mybatisplus.annotations.Unique;
import com.basin.common.mybatisplus.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_tenant", excludeProperty = {"tenantId"})
public class TenantEntity extends BaseEntity {
    @Unique({"uni1"})
    private String code;

    @Unique({"uni1"})
    private String name;

    private String description;

    private Long parentId;

    private Integer level;

    private Timestamp expireTime;

    private Integer available;
}
